/**
 * 数据源列表视图类
 * */
Ext.define("core.timePlan.view.TimePlanGrid", {
    extend: "Ext.grid.Panel",
    alias: "widget.timePlanGrid",
    id: 'timePlanGrid',
    store: "core.timePlan.store.TimePlanStore",
    border: 0,
    selModel: {
        selType: "checkboxmodel"
    },
    multiSelect: true,
    frame: true,
    tbar: [
        {xtype: 'button', text: '刷新', ref: 'ref', iconCls: 'table_refresh'}
    ],
    viewConfig: {
        enableTextSelection: true
    },
    enableKeyNav: true,  //可以使用键盘控制上下
    columnLines: true, //展示竖线
    columns: [
        {xtype: 'rownumberer'},
        {
            text: "任务执行ID", dataIndex: "groupId", width: 150, field: {
            xtype: "textfield"
        }
        },
        {
            text: "上一次执行时间", dataIndex: "prevFireTime", width: 150,
            renderer: function (v) {
                return v.substring(0, 19);
            }
        },
        {
            text: "下一次执行时间", dataIndex: "nextFireTime", width: 150,
            renderer: function (v) {
                return v.substring(0, 19);
            }
        },
        {
            text: "开始日期", dataIndex: "startTime", width: 150,
            renderer: function (v) {
                return v.substring(0, 19);
            }
        },
        {
            text: "结束日期", dataIndex: "stopTime", width: 150,
            renderer: function (v) {
                return v.substring(0, 19);
            }
        }
    ],
    initComponent: function () {
        this.callParent(arguments);
    }
});